package com.controller;

import com.model.MyUser;
import com.service.MyuserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@Api("我的用户")
@RestController
@RequestMapping( " / myUser ")
public class MyuserController{

        @Autowired
        private MyuserService myuserService;

        @RequestMapping(value ="/addUser " ,method = RequestMethod.GET)public int addUser(MyUser myUser){
            System.out.println("进入用户添加方法");return myuserService.addMyUser(myUser);
        }
}
